package yxy.cherry.router.server;

import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.traffic.ChannelTrafficShapingHandler;
import yxy.apple.nio.Handler;
import yxy.banana.server.internal.InternalInitializer;
import yxy.banana.socket.controlled.Controller;

public class RouterServerInitializer extends InternalInitializer {

	@Override
	protected Handler provideHandler(NioSocketChannel channel) throws Exception {
		RouterServerController controller = new RouterServerController();
		return Controller.bind(controller, RouterServerHandler.class);
	}

	@Override
	protected ChannelTrafficShapingHandler provideChannelTrafficShaper(NioSocketChannel channel) throws Exception {
		//TODO 提供流量整形策略
		return null;
	}

}
